package city.spring.modules.oldman.repository;

import city.spring.modules.oldman.entity.OldmanFamilydependentEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 存储库：老人家属信息
 *
 * @author 侯坤林
 * @date 2020-05-20 22:51:29
 */
@Repository
public interface OldmanFamilydependentRepository extends BaseMapper<OldmanFamilydependentEntity> {
    /**
     * 根据老人id查找老人家属信息
     *
     * @param oldmanId
     * @return
     */
    List<OldmanFamilydependentEntity> getFamilydependentByOldmanId(@Param("oldmanId") String oldmanId);
}